package com.javase.Homework;

public class Homework04 {
    public static void main(String[] args) {
        int[] arr = {23,56,89,64,31};
        A03 a03 = new A03();
        int[] arr1 = a03.copyArr(arr);
        for (int i = 0; i < arr1.length;i++){
            System.out.println(arr1[i]);
        }
    }
}
class A03{
    public int[] copyArr(int[] oldArr){
        int[] newArr = new int[oldArr.length];
        for (int i = 0;i < oldArr.length;i++){
            newArr[i] = oldArr[i];
        }
        return newArr;
    }
}
